var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
{
    var Person = /** @class */ (function () {
        function Person(n, a) {
            this.name = n;
            this.age = a;
        }
        Person.prototype.fn = function () {
            console.log(this.name);
        };
        return Person;
    }());
    var p1 = new Person('迪丽热巴', 20);
    p1.fn();
    console.log(p1.name);
    var Son = /** @class */ (function (_super) {
        __extends(Son, _super);
        function Son(n, a) {
            return _super.call(this, n, a) || this;
        }
        Son.prototype.func = function () {
            console.log(this.name, 1111);
        };
        return Son;
    }(Person));
    var s1 = new Son('古力娜扎', 22);
    s1.fn();
    s1.func();
    console.log(s1.name);
}
